<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        function Person(name, age, gender, height) {
            this.name = name;
            this.age = age;
            this.gender = gender;
            this.height = height;
            return {}
            console.log(123);
        }

        var gd = new Person('狗蛋', 18, '男', 188)
        console.log(gd);

        /*
            如果要在构造函数中写reutn
                只有当reutrn后面是 一个对象  才能修改  构建函数的 执行结果
        */
    </script>
</body>

</html>